/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * init_secretario.java
 *
 * Created on 05-feb-2012, 22:33:59
 */
package core.constructor;

/**
 *
 * @author !gaso
 */
public class init_secretario extends javax.swing.JPanel {

    constructor c;

    public init_secretario(Object... e) {
        initComponents();
        config(e);
        c.setLabelAccion("Ventana Principal");

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        bCitas = new javax.swing.JButton();
        bAgenda = new javax.swing.JButton();
        bEspecialista = new javax.swing.JButton();
        bTrazabilidad = new javax.swing.JButton();
        bAcudientes = new javax.swing.JButton();
        bPacientes = new javax.swing.JButton();
        bMedicamentos = new javax.swing.JButton();

        setLayout(new java.awt.GridBagLayout());

        bCitas.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        bCitas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/core/img/citas.png"))); // NOI18N
        bCitas.setText("Citas");
        bCitas.setToolTipText("Asignacion y Consulta de Citas");
        bCitas.setHideActionText(true);
        bCitas.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bCitas.setMargin(new java.awt.Insets(14, 14, 14, 14));
        bCitas.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        bCitas.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bCitas.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                bCitasMouseEntered(evt);
            }
        });
        bCitas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bCitasActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.insets = new java.awt.Insets(21, 19, 0, 0);
        add(bCitas, gridBagConstraints);

        bAgenda.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        bAgenda.setIcon(new javax.swing.ImageIcon(getClass().getResource("/core/img/agenda.png"))); // NOI18N
        bAgenda.setText("Agenda");
        bAgenda.setToolTipText("Agenda de Médicos");
        bAgenda.setHideActionText(true);
        bAgenda.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bAgenda.setMargin(new java.awt.Insets(14, 14, 14, 14));
        bAgenda.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        bAgenda.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bAgenda.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                bAgendaMouseEntered(evt);
            }
        });
        bAgenda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAgendaActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.ipadx = 1;
        gridBagConstraints.insets = new java.awt.Insets(21, 5, 0, 0);
        add(bAgenda, gridBagConstraints);

        bEspecialista.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        bEspecialista.setIcon(new javax.swing.ImageIcon(getClass().getResource("/core/img/doctor.png"))); // NOI18N
        bEspecialista.setText("Especialistas");
        bEspecialista.setToolTipText("Consulta de Especialistasl");
        bEspecialista.setHideActionText(true);
        bEspecialista.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bEspecialista.setMargin(new java.awt.Insets(14, 14, 14, 14));
        bEspecialista.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        bEspecialista.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bEspecialista.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                bEspecialistaMouseEntered(evt);
            }
        });
        bEspecialista.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bEspecialistaActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.insets = new java.awt.Insets(21, 1, 0, 0);
        add(bEspecialista, gridBagConstraints);

        bTrazabilidad.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        bTrazabilidad.setIcon(new javax.swing.ImageIcon(getClass().getResource("/core/img/trazabilidad.png"))); // NOI18N
        bTrazabilidad.setText("Trazabilidad");
        bTrazabilidad.setToolTipText("Reporte de Evolución Pacientes");
        bTrazabilidad.setHideActionText(true);
        bTrazabilidad.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bTrazabilidad.setMargin(new java.awt.Insets(14, 14, 14, 14));
        bTrazabilidad.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        bTrazabilidad.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bTrazabilidad.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                bTrazabilidadMouseEntered(evt);
            }
        });
        bTrazabilidad.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bTrazabilidadActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 4;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridwidth = 3;
        gridBagConstraints.insets = new java.awt.Insets(21, 5, 0, 54);
        add(bTrazabilidad, gridBagConstraints);

        bAcudientes.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        bAcudientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/core/img/acudientes.png"))); // NOI18N
        bAcudientes.setText("Acudientes");
        bAcudientes.setToolTipText("Responsables de los Pacientes");
        bAcudientes.setHideActionText(true);
        bAcudientes.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bAcudientes.setMargin(new java.awt.Insets(14, 14, 14, 14));
        bAcudientes.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        bAcudientes.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bAcudientes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                bAcudientesMouseEntered(evt);
            }
        });
        bAcudientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bAcudientesActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.gridwidth = 2;
        gridBagConstraints.insets = new java.awt.Insets(6, 6, 43, 0);
        add(bAcudientes, gridBagConstraints);

        bPacientes.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        bPacientes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/core/img/paciente_2.png"))); // NOI18N
        bPacientes.setText("Pacientes");
        bPacientes.setHideActionText(true);
        bPacientes.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bPacientes.setMargin(new java.awt.Insets(14, 14, 14, 14));
        bPacientes.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        bPacientes.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bPacientes.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                bPacientesMouseEntered(evt);
            }
        });
        bPacientes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bPacientesActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.insets = new java.awt.Insets(6, 19, 43, 0);
        add(bPacientes, gridBagConstraints);

        bMedicamentos.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        bMedicamentos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/core/img/medicamentos_64.png"))); // NOI18N
        bMedicamentos.setText("Medicinas");
        bMedicamentos.setToolTipText("Medicamentos Registrados en el Sistema");
        bMedicamentos.setHideActionText(true);
        bMedicamentos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        bMedicamentos.setMargin(new java.awt.Insets(14, 14, 14, 14));
        bMedicamentos.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        bMedicamentos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        bMedicamentos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                bMedicamentosMouseEntered(evt);
            }
        });
        bMedicamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bMedicamentosActionPerformed(evt);
            }
        });
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.insets = new java.awt.Insets(6, 5, 43, 8);
        add(bMedicamentos, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents

    private void bCitasMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bCitasMouseEntered
        c.infoUsuario("help", "Consulte Citas Disponibles y Asigne Nuevas Citas", "Citas Médicas");
    }//GEN-LAST:event_bCitasMouseEntered

    private void bAgendaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bAgendaMouseEntered
        c.infoUsuario("help", "Consulte y Asigne Disponibilidad de Médicos", "Planilla de Horarios Especialista");
    }//GEN-LAST:event_bAgendaMouseEntered

    private void bEspecialistaMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bEspecialistaMouseEntered
        c.infoUsuario("help", "Consulte Información sobre Médicos y agregue nuevos Médicos Especialistas al Sistema", "Especialistas");
    }//GEN-LAST:event_bEspecialistaMouseEntered

    private void bTrazabilidadMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bTrazabilidadMouseEntered
        c.infoUsuario("help", "Genere Reporte de Trazabilidad Paciente, indicando la evolucion frente al tratamiento aplicado", "Evolución Paciente");
    }//GEN-LAST:event_bTrazabilidadMouseEntered

    private void bPacientesMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bPacientesMouseEntered
        c.infoUsuario("help", "Consulte Información acerca de Pacientes o Agregue Pacientes al Sistema", "Pacientes");
    }//GEN-LAST:event_bPacientesMouseEntered

    private void bAcudientesMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bAcudientesMouseEntered
        c.infoUsuario("help", "Acompañantes de los Pacientes y Responsables por el Ciudado de los mismos", "Responsables del Paciente");
    }//GEN-LAST:event_bAcudientesMouseEntered

    private void bCitasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bCitasActionPerformed
        c.constructor("Cita_View_Grid");
    }//GEN-LAST:event_bCitasActionPerformed

    private void bAgendaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAgendaActionPerformed
        c.constructor("Planilla_View_Grid");
    }//GEN-LAST:event_bAgendaActionPerformed

    private void bEspecialistaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bEspecialistaActionPerformed
        c.constructor("Medico_View_Grid");
    }//GEN-LAST:event_bEspecialistaActionPerformed

    private void bTrazabilidadActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bTrazabilidadActionPerformed
        c.constructor("Trazabilidad");
    }//GEN-LAST:event_bTrazabilidadActionPerformed

    private void bPacientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bPacientesActionPerformed
        c.constructor("Paciente_View_Grid");
    }//GEN-LAST:event_bPacientesActionPerformed

    private void bAcudientesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bAcudientesActionPerformed
       c.constructor("Acudiente_View_Grid");
    }//GEN-LAST:event_bAcudientesActionPerformed

    private void bMedicamentosMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_bMedicamentosMouseEntered
        c.infoUsuario("help", "Medicamentos Registrados en el Sistema", "Medicamentos");
    }//GEN-LAST:event_bMedicamentosMouseEntered

    private void bMedicamentosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bMedicamentosActionPerformed
        c.constructor("Medicamentos_View_Grid"); 
    }//GEN-LAST:event_bMedicamentosActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bAcudientes;
    private javax.swing.JButton bAgenda;
    private javax.swing.JButton bCitas;
    private javax.swing.JButton bEspecialista;
    private javax.swing.JButton bMedicamentos;
    private javax.swing.JButton bPacientes;
    private javax.swing.JButton bTrazabilidad;
    // End of variables declaration//GEN-END:variables

    /**
     * <strong>config</strong><br> Configura los parametros que provienen del
     * constructor de la clase.<br> e[0] - contiene el JFrame 'padre'.
     *
     * @param e
     */
    private void config(Object... e) {
        if (e.length > 0) {
            c = (constructor) e[0];
        }
    }
}
